#import "AppDelegate.h" 
#import "GeneratedPluginRegistrant.h"
#import "CusViewController.h"
#import <DCUniMP.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GeneratedPluginRegistrant registerWithRegistry:self];
  // Override point for customization after application launch.
    
 [super application:application didFinishLaunchingWithOptions:launchOptions];
    
    // 记录 纯Flutter VC
    self.flutterVC =  self.window.rootViewController;

    // 自定义 VC
//    UINavigationController *CustermNavVC = [[UINavigationController alloc] initWithRootViewController:flutterVC];
    
    UINavigationController *CustermNavVC = [[UINavigationController alloc] initWithRootViewController:[CusViewController new]];
    
    self.window.rootViewController = CustermNavVC;  //CustermNavVC;
    [self.window makeKeyAndVisible];
    
    /// 初始化 小程序SDK
      // 配置参数
       NSMutableDictionary *options = [NSMutableDictionary dictionaryWithDictionary:launchOptions];
       // 设置 debug YES 会在控制台输出 js log，默认不输出 log，注：需要引入 liblibLog.a 库
       [options setObject:[NSNumber numberWithBool:YES] forKey:@"debug"];
       // 初始化引擎
       [DCUniMPSDKEngine initSDKEnvironmentWithLaunchOptions:options];

    
    
    return YES;
}

@end
